package com.hzit.util;

import com.alibaba.fastjson.JSON;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class RespUtil {
	public static void write(HttpServletResponse response, R<Object> fail) throws IOException {
		response.setContentType("application/json;charset=utf-8");
		response.getWriter().println(JSON.toJSONString(fail));
		response.getWriter().flush();
	}
}
